package com.web.exiaodao.business.repository;

import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.repository.PagingAndSortingRepository;

import com.web.exiaodao.business.entity.InsHotelRoomsTable;

import java.util.List;


public interface InsHotelRoomsTableRepository extends
		PagingAndSortingRepository<InsHotelRoomsTable, Long>,
		JpaSpecificationExecutor<InsHotelRoomsTable> {

	public InsHotelRoomsTable findById(Long id);
	public InsHotelRoomsTable findByIdAndStatusNot(Long id,Integer status);
	public List<InsHotelRoomsTable> findByInstitutionId(Long institution_ID);
	public List<InsHotelRoomsTable> findByInstitutionIdAndStatusNot(Long institution_ID,Integer status);
}
